package com.example.livingadminmaster.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.livingadminmaster.pojo.Maintenance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MaintenanceMapper extends BaseMapper<Maintenance> {
    @Update("UPDATE dormitory_maintenance_info SET status = #{status} WHERE maintenance_id = #{maintenanceId}")
    int updateUserStatus(@Param("maintenance_id") long maintenance_id, @Param("status") boolean status);
}
